<?php include 'PHP/head.php'; ?>
<?php include 'PHP/botonesSesion.php'; ?>
<div>
    <div id="titulo">Modelo con servidores múltiples(MMS)</div>
    <p>Tiempo de servicio y de llegadas del tipo exponencial. <br>
Llegadas aleatorias.<br>
Múltiples servidoes.<br>
PLPS<br>
No hay límite de recepción de clientes.<br>
Población infinita.<br>
Hay epacio suficiente.<br>
No hay abandono no rechazo</p>
<div id="fuente">(Fuente: <a href="http://enlaweb.com.mx/io2/lineas-de-espera.php">Modelo de un servidor una cola</a>)</div>
</div>
<form method="get" action="mms.php">
    <table class="valores">
        <tr>
            <td>
                Mu (&#956;):
                <input type="number" name="mu" required min="1"
                    <?php
                        if (isset($_GET["mu"])) {
                            echo 'value="'.$_GET["mu"].'"';
                        }
                    ?>
                />
            </td>
            <td>
                Lambda (&#955;):<input type="number" name="lambda" required min="1"
                    <?php
                        if (isset($_GET["lambda"])) {
                            echo 'value="'.$_GET["lambda"].'"';
                        }
                    ?>
                />
            </td>
            <td>
                S:<input type="number" name="s" required min="2"
                    <?php
                        if (isset($_GET["s"])) {
                            echo 'value="'.$_GET["s"].'"';
                        }
                    ?>
                />
            </td>
            <td>
                Po:
                <input type="number" name="Po" required step="any"
                    <?php
                        if (isset($_GET["Po"])) {
                            echo 'value="'.$_GET["Po"].'"';
                        }
                    ?>
                />
            </td>
        </tr>
        <tr>
            <td>
                <input type="submit" name="oper" value="Lq"/>
            </td>
            <td>
                <input type="submit" name="oper" value="L"/>
            </td>
            <td>
                <input type="submit" name="oper" value="Wq"/>
            </td>
            <td>
                <input type="submit" name="oper" value="W"/>
            </td>
        </tr>
        <tr>
            <td></td>
            <td colspan="2">
                <input type="submit" name="oper" value="Calcular todo"/>
            </td>
        </tr>
    </table>
</form>
<?php include 'PHP/calculosMMS.php'; ?>
<div id="SwipeWidnow">
    <div class="SwipeTitle_bar" id="TablaPo">
        <div class="SwipeButton" id="SwipeButtonTablaPo">+</div>
        Tabla para obtener Po
    </div>
    <div id="SwipeBoxTablaPo" class="SwipeBox">
        <img src="CSS/images/TablaPo.jpg" id="imgTablaPo"/>
    </div>
</div>
<div id="SwipeWidnow">
    <div class="SwipeTitle_bar" id="MMSfor1">
        <div class="SwipeButton" id="SwipeButtonMMSfor1">+</div>
        Formulas (MMS - parte 1)
    </div>
    <div id="SwipeBoxMMSfor1" class="SwipeBox">
        <img src="CSS/images/MMSfor1.jpg" id="imgMMSfor1"/>
    </div>
</div>
<div id="SwipeWidnow">
    <div class="SwipeTitle_bar" id="MMSfor2">
        <div class="SwipeButton" id="SwipeButtonMMSfor2">+</div>
        Formulas (MMS - parte 2)
    </div>
    <div id="SwipeBoxMMSfor2" class="SwipeBox">
        <img src="CSS/images/MMSfor2.jpg" id="imgMMSfor2"/>
    </div>
</div>
<div id="SwipeWidnow">
    <div class="SwipeTitle_bar" id="MMSfor3">
        <div class="SwipeButton" id="SwipeButtonMMSfor3">+</div>
        Formulas (MMS - parte 3)
    </div>
    <div id="SwipeBoxMMSfor3" class="SwipeBox">
        <img src="CSS/images/MMSfor3.jpg" id="imgMMSfor3"/>
    </div>
</div>

<script type="text/javascript">
<!--
    $(document).ready(function() {
        $('.SwipeTitle_bar').click(function() {
            $("#SwipeBox" + this.id).slideToggle();
            if ($('#SwipeButton' + this.id).html() === "-") {
                $('#SwipeButton' + this.id).html("+");
            } else {
                $('#SwipeButton' + this.id).html("-");
            }
            if ($('#SwipeButton' + this.id).html() === "-") {
                var scrollIndex = ($("#" + this.id).offset()).top;
               $("html, body").animate({scrollTop:(scrollIndex)},800,"swing");
            }
        }).delay(500);	
    });
//-->
</script>
<?php include 'PHP/foot.php'; ?>